package com.ndp.fb.creative.fetchdata.dao.mysql.impl.mapper;

import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Component;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Created by Jacky on 2014/10/28.
 */
@Component
public class IdListRowMapper implements RowMapper<Long> {
    @Override
    public Long mapRow(ResultSet rs, int rowNum) throws SQLException {
        return new Long(rs.getLong("ad_group_id"));
    }
}
